﻿namespace Infrastructure.ElasticSearch.ParentChilds
{
    public class QueryContext<T, TEntity> where T : class
    {
        private readonly TEntity _searchEntity;
        private readonly ConditionContext<T> _conditionContext;

        public QueryContext(TEntity entity)
        {
            _conditionContext = new ConditionContext<T>();
            _searchEntity = entity;
        }

        public TEntity SearchEntity => _searchEntity;
        public ConditionContext<T> ConditionContext => _conditionContext;
    }
}